package com.kedou.domain;

import java.util.ArrayList;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 项目详情的JavaBean
 * 
 * @author zhouchao
 * 
 */
public class ProjectItem implements Parcelable {
	/**
	 * 项目Id
	 */
	private String projectId;
	/**
	 * 用户级别
	 */
	private String user_level;
	/**
	 * 项目名称
	 */
	private String projectName;
	/**
	 * 项目创建时间
	 */
	private String createTime;
	/**
	 * 项目图片
	 */
	private String projectSlogan;
	/**
	 * 项目二级标题
	 */
	private String subTitle;
	/**
	 * 项目认筹进度
	 */
	private String progress;
	/**
	 * 已支付款额
	 */
	private String paid;
	/**
	 * 认筹目标金额
	 */
	private String goal;
	/**
	 * 项目结束时间
	 */
	private String endTime;
	/**
	 * 项目介绍的url
	 */
	private String videoUrl;
	/**
	 * 占项目股权百分比
	 */
	private String accounting;
	/**
	 * 用户关注数
	 */
	private String followNum;
	/**
	 * 项目状态
	 */
	private int projectStatus;
	/**
	 * 项目介绍的Url
	 */
	private String introduction;
	/**
	 * 项目是否已关注. 0表示：未关注； 1表示；已关注
	 */
	private int hasFollowed;
	/**
	 * 七大type的URL
	 */
	private ArrayList<String> urls;

	public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getUser_level() {
		return user_level;
	}

	public void setUser_level(String user_level) {
		this.user_level = user_level;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getProjectSlogan() {
		return projectSlogan;
	}

	public void setProjectSlogan(String projectSlogan) {
		this.projectSlogan = projectSlogan;
	}

	public String getSubTitle() {
		return subTitle;
	}

	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}

	public String getProgress() {
		return progress;
	}

	public void setProgress(String progress) {
		this.progress = progress;
	}

	public String getPaid() {
		return paid;
	}

	public void setPaid(String paid) {
		this.paid = paid;
	}

	public String getGoal() {
		return goal;
	}

	public void setGoal(String goal) {
		this.goal = goal;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getVideoUrl() {
		return videoUrl;
	}

	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}

	public String getAccounting() {
		return accounting;
	}

	public void setAccounting(String accounting) {
		this.accounting = accounting;
	}

	public String getFollowNum() {
		return followNum;
	}

	public void setFollowNum(String followNum) {
		this.followNum = followNum;
	}

	public int getProjectStatus() {
		return projectStatus;
	}

	public void setProjectStatus(int projectStatus) {
		this.projectStatus = projectStatus;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public int getHasFollowed() {
		return hasFollowed;
	}

	public void setHasFollowed(int hasFollowed) {
		this.hasFollowed = hasFollowed;
	}

	public ArrayList<String> getUrls() {
		return urls;
	}

	public void setUrls(ArrayList<String> urls) {
		this.urls = urls;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(projectId);
		dest.writeString(user_level);
		dest.writeString(projectName);
		dest.writeString(createTime);
		dest.writeString(projectSlogan);
		dest.writeString(subTitle);
		dest.writeString(progress);
		dest.writeString(paid);
		dest.writeString(goal);
		dest.writeString(endTime);
		dest.writeString(videoUrl);
		dest.writeString(accounting);
		dest.writeString(followNum);
		dest.writeInt(projectStatus);
		dest.writeString(introduction);
		dest.writeInt(hasFollowed);
		dest.writeList(urls);
	}

	public static final Parcelable.Creator<ProjectItem> CREATOR = new Parcelable.Creator<ProjectItem>() {

		@Override
		public ProjectItem createFromParcel(Parcel source) {
			ProjectItem item = new ProjectItem();
			item.projectId = source.readString();
			item.user_level = source.readString();
			item.projectName = source.readString();
			item.createTime = source.readString();
			item.projectSlogan = source.readString();
			item.subTitle = source.readString();
			item.progress = source.readString();
			item.paid = source.readString();
			item.goal = source.readString();
			item.endTime = source.readString();
			item.videoUrl = source.readString();
			item.accounting = source.readString();
			item.followNum = source.readString();
			item.projectStatus = source.readInt();
			item.introduction = source.readString();
			item.hasFollowed = source.readInt();
			item.urls = source.readArrayList(null);
			return item;
		}

		@Override
		public ProjectItem[] newArray(int size) {
			return new ProjectItem[size];
		}

	};

}
